package com.bawei.myapplication

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.TextView
import androidx.databinding.DataBindingUtil
import com.bawei.myapplication.databinding.ActivityMainBinding

class MainActivity : AppCompatActivity() {
    lateinit var dataBinding:ActivityMainBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        dataBinding=DataBindingUtil.setContentView(this,R.layout.activity_main)


        dataBinding.aaa.setOnClickListener {
            startActivity(Intent(this@MainActivity,MainActivity2::class.java))
        }

    }
}